package com.example.midprojcampusspringboot.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_manager_class")
public class TManagerClass {

  @TableId(type = IdType.AUTO)
  private long id;
  private String name;
  @TableField(fill = FieldFill.INSERT)
  private LocalDateTime createdTime;
  private String classDesc;
  private long teacherId;
  @NonNull // 每个班级必须关联一个活动
  private long activityId;

}
